home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Over 1,000 Windows 95 Programs
/
Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso
/
0159
/
vb.zip
/
SEKNOBS.FRM
< prev
next >
Wrap
Text File
|
1995-12-17
|
16KB
|
512 lines
VERSION 2.00
Begin Form KnobDemo
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Knob Demo"
ClientHeight = 4725
ClientLeft = 2385
ClientTop = 5625
ClientWidth = 8025
Height = 5085
Left = 2325
LinkTopic = "Form2"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 315
ScaleMode = 3 'Pixel
ScaleWidth = 535
Top = 5325
Width = 8145
Begin HScrollBar HScroll1
Height = 225
Index = 3
Left = 4800
Max = 3
TabIndex = 29
Top = 2880
Width = 2595
End
Begin HScrollBar HScroll1
Height = 225
Index = 1
Left = 4800
Max = 150
Min = -150
TabIndex = 28
Top = 2280
Width = 2595
End
Begin HScrollBar HScroll1
Height = 225
Index = 0
Left = 4800
Max = 150
Min = -150
TabIndex = 25
Top = 1980
Width = 2595
End
Begin CheckBox Check1
BackColor = &H00C0C0C0&
Caption = "MouseControl"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 225
Left = 3780
TabIndex = 6
Top = 3360
Width = 1635
End
Begin TextBox Text1
Height = 585
Left = 135
MultiLine = -1 'True
TabIndex = 8
Text = "0,1000, 200,800, 150,700, 500,-600, 0,-500, -500,-600, -150,700, -200,800"
Top = 3975
Width = 7740
End
Begin Frame Frame4
BackColor = &H00C0C0C0&
Caption = "KnobColor"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1275
Left = 5790
TabIndex = 18
Top = 90
Width = 1605
Begin Label HColors
BackColor = &H00000000&
Height = 225
Index = 0
Left = 450
TabIndex = 0
Top = 360
Width = 225
End
Begin Label HColors
BackColor = &H00808080&
Height = 225
Index = 5
Left = 930
TabIndex = 9
Top = 570
Width = 225
End
Begin Label HColors
BackColor = &H00FFFFFF&
Height = 225
Index = 1
Left = 690
TabIndex = 7
Top = 360
Width = 225
End
Begin Label HColors
BackColor = &H000000FF&
Height = 225
Index = 6
Left = 450
TabIndex = 1
Top = 780
Width = 225
End
Begin Label HColors
BackColor = &H0000FF00&
Height = 225
Index = 2
Left = 930
TabIndex = 19
Top = 360
Width = 225
End
Begin Label HColors
BackColor = &H0000FFFF&
Height = 225
Index = 7
Left = 690
TabIndex = 24
Top = 780
Width = 225
End
Begin Label HColors
BackColor = &H00FF0000&
Height = 225
Index = 3
Left = 450
TabIndex = 23
Top = 570
Width = 225
End
Begin Label HColors
BackColor = &H00FF00FF&
Height = 225
Index = 8
Left = 930
TabIndex = 22
Top = 780
Width = 225
End
Begin Label HColors
BackColor = &H000080FF&
Height = 225
Index = 4
Left = 690
TabIndex = 21
Top = 570
Width = 225
End
End
Begin HScrollBar HScroll1
Height = 225
Index = 2
Left = 4800
Max = 100
TabIndex = 14
Top = 2580
Width = 2595
End
Begin Frame Frame2
BackColor = &H00C0C0C0&
Caption = "KnobStyle"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1275
Left = 4020
TabIndex = 10
Top = 90
Width = 1605
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "User"
Height = 225
Index = 3
Left = 210
TabIndex = 5
Top = 900
Width = 1005
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Complex"
Height = 225
Index = 2
Left = 210
TabIndex = 4
Top = 690
Width = 1005
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Pointer"
Height = 225
Index = 1
Left = 210
TabIndex = 12
Top = 480
Width = 1095
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Circle"
Height = 225
Index = 0
Left = 210
TabIndex = 11
Top = 270
Width = 1125
End
End
Begin SELECTOR Selector1
Angle = 210
AutoAlign = -1 'True
AutoAngle = -1 'True
AutoAngleConfine= 0 'False
AutoOffset = -1 'True
AutoOffsetDistance= 0
AutoOffsetStyle = 0 ' 0 - Circular
AutoRadius = 0.8
AutoStartAngle = 210
AutoStopAngle = 330
AVersion = 0
BackgroundColor = &H00C0C0C0&
BevelInner = 1 ' 1 - Raised
BevelOuter = 2 ' 2 - Inset
BevelWidth = 2
BorderType = 1 ' 1 - Bevel
BorderWidth = 2
FontID = 0
FrameColor = &H00000000&
FrameScaleX = 0
FrameScaleY = 0
FrameStyle = 0 ' 0 - None
Height = 3465
Highlight = 0 'False
HighlightColor = &H00000000&
KnobColor = &H00808080&
KnobOriginX = 0
KnobOriginY = 0
KnobRadius = 0.6
KnobStyle = 0 ' 0 - Cicular
KnobUserDefined = "0,1000, 200,800, 150,700, 500,-600, 0,-500, -500,-600, -150,700, -200,800"
Left = 150
LineDisplay = 0 'False
LineInnerRadius = 0.4
LineThickness = 1
MarkUserDefined = ""
MouseControl = -1 'True
OutlineAlign = 0 ' 0 - Left
OutlineColor = &H00000000&
OutlineTitle = ""
OutlineWidth = 0
Radius = 0
TabIndex = 2
TabStop = 0 'False
Top = 120
Value = 0
Width = 3495
XScale = 0
YScale = 0
ZLoad = SEKNOBS.FRX:0000
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 3
Left = 7440
TabIndex = 31
Top = 2880
Width = 270
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Value:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 3
Left = 4305
TabIndex = 30
Top = 2880
Width = 450
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 1
Left = 7440
TabIndex = 3
Top = 2280
Width = 270
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "KnobOriginY:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 1
Left = 3825
TabIndex = 15
Top = 2280
Width = 930
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 0
Left = 7440
TabIndex = 27
Top = 1980
Width = 270
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "KnobOriginX:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 0
Left = 3825
TabIndex = 26
Top = 1980
Width = 930
End
Begin Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "KnobUserDefined: (x,y pair list for shape)"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 4
Left = 120
TabIndex = 20
Top = 3720
Width = 2865
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 4
Left = 1950
TabIndex = 17
Top = 3840
Width = 90
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "KnobRadius:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 2
Left = 3840
TabIndex = 16
Top = 2580
Width = 915
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 2
Left = 7440
TabIndex = 13
Top = 2580
Width = 270
End
End
Sub Check1_Click ()
selector1.MouseControl = check1
End Sub
Sub Form_Load ()
hscroll1(0) = selector1.KnobOriginX * 100
hscroll1(1) = selector1.KnobOriginY * 100
hscroll1(2) = selector1.KnobRadius * 100
label2(0) = selector1.KnobOriginX
label2(1) = selector1.KnobOriginY
label2(2) = selector1.KnobRadius
label2(3) = selector1.Value
check1 = -selector1.MouseControl
option2(selector1.KnobStyle) = True
text1 = selector1.KnobUserDefined
End Sub
Sub HColors_Click (index As Integer)
selector1.KnobColor = HColors(index).BackColor
End Sub
Sub HScroll1_Change (index As Integer)
Select Case index
Case 0
selector1.KnobOriginX = hscroll1(0) / 100
label2(0) = hscroll1(0) / 100
Case 1
selector1.KnobOriginY = hscroll1(1) / 100
label2(1) = hscroll1(1) / 100
Case 2
selector1.KnobRadius = hscroll1(2) / 100
label2(2) = hscroll1(2) / 100
Case 3
selector1.Value = hscroll1(3)
label2(3) = hscroll1(3)
End Select
End Sub
Sub HScroll1_Scroll (index As Integer)
Select Case index
Case 0
selector1.KnobOriginX = hscroll1(0) / 100
label2(0) = hscroll1(0) / 100
Case 1
selector1.KnobOriginY = hscroll1(1) / 100
label2(1) = hscroll1(1) / 100
Case 2
selector1.KnobRadius = hscroll1(2) / 100
label2(2) = hscroll1(2) / 100
Case 3
selector1.Value = hscroll1(3)
label2(3) = hscroll1(3)
End Select
End Sub
Sub Option2_Click (index As Integer)
selector1.KnobStyle = index
End Sub
Sub Text1_Change ()
selector1.KnobUserDefined = text1
End Sub